 <?php
 include("include/textcenter.php");
 include("include/db.php");
$id = $_GET['id'];
if($_POST)
{
    $ProductID = $_POST['ProductID'];
    $sql = "update vnf_relative_product set`RelativeProductNo`='$ProductID' 
    where ProductNo=".$id;
    mysql_query($sql);
}
mysql_close($con);
 ?>
 <p></p>
<html>
<head>
<meta name="description" content="Admin<?php echo $tagdescription?>">
<meta name="keywords" content="<?php echo $tagkeywords?> Main">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo $tagtitle?></title>
<script type="text/javascript" src="jquery-1.4.2.js"></script>
	<script type='text/javascript' src='jquery.autocomplete.js'></script>
	<link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" />
	<script type="text/javascript">
		$(function(){
			
			$("#Product").autocomplete("docomplete1.php", {
				width: 260,
				matchContains: true,				
            });
			
			$("#Product").result(function(event, data, formatted) {
				$("#ProductID").val(data[1]);
			});

		});
	</script>

<script type="text/javascript" src="simpletreemenu.js">
/***********************************************
* Simple Tree Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="simpletree.css" />
<LINK rel="StyleSheet" href="include/css_classes.css" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!-- Hide code from non-js browsers
function validateForm()
{
  var valid="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  var formObj;

  formObj = document.member;


  if (formObj.DepartmentName.value == "") {
    alert("You have not filled in Department Name");
    formObj.DepartmentName.focus();
    return false;
  }

  
   
       
 
return true;
}
// end hiding -->
</SCRIPT>

</head>



<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" link="#0000FF" vlink="#800080" alink="#FF0000" bgcolor="#FFFFFF">
<!-- -------------------Header---------------------------- -->
<?php include("include/header.php"); ?>
<!-- -------------------End Header---------------------------- -->


<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="12%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="200" height="1"></td>
		<td width="1%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="16" height="1"></td>
		<td width="86%" valign="top">
		<img border="0" src="public/images/homepage/spider16.gif" width="16" height="1"></td>
	</tr>	
	<tr>
		<!-- ///////////////////Begin Leftmenu/////////////////// -->
		<td width="12%" valign="top" bgcolor="#FFFFFF">
		<?php include("include/leftmenu.php"); ?>
		</td>
		<!-- ///////////////////End Leftmenu/////////////////// -->
		
		<td width="1%" valign="top" background="public/images/homepage/16.gif">&nbsp;</td>
		<td width="86%" valign="top">
	<br>
<!-- -------------------Begin Body---------------------------- -->
<p class="title16B">&nbsp;Product - Relative</p>

    <form action="" method="post" name="appForm" id="appForm">

	<table border="1" width="50%" cellspacing="0" bordercolor="#FFF4FF" bgcolor="#FFFFFF">
			
        <tr>
			<td valign="top" width="180" align="right">Product</td>
			<td valign="top" width="120">
            <input type="text" name="Product" id="Product"/>
			<input type="hidden" name="ProductID" id="ProductID" value="<?php echo $id ?>" /></td>
		</tr>
		<tr>
			<td valign="top" width="180" align="right">&nbsp;</td>
			<td valign="top" width="620">
			<input type="submit" value="Add" name="SubmitAdd" ></td>
		</tr>
		
		
		<tr>
			<td valign="top" width="180" align="right">&nbsp;</td>
			<td valign="top">&nbsp;</td>
		</tr>
	</table>
	<p><br>
&nbsp;</p>
</form>

<!-- -------------------End Body---------------------------- -->

&nbsp;</td>
	</tr>

</table>
</div>
<!-- ----------------------------------------------- -->
<!-- \\\\\\\\\\\\\\\\\\\\\Begin Footer\\\\\\\\\\\\\\\\\\\\\ -->
<?php include("include/footer.php"); ?>
<!-- \\\\\\\\\\\\\\\\\\\\\End Footer\\\\\\\\\\\\\\\\\\\\\ -->
</body>

</html>